<?php
$data = file_get_contents('php://input');
$handle = fopen($_SERVER['DOCUMENT_ROOT'].'/android/upload/image/345444.jpg', 'w');

$par = $_POST['par'];
echo $par;
if ($handle){
 fwrite($handle,$data);
 fclose($handle);
 echo "success";
}

?>
